package artid.com.arttogo.bean;

import org.json.JSONObject;

import java.io.Serializable;

public class Qqlogin extends AppItem implements Serializable {

	String state;
	Boolean qq;
	Boolean weixin;
	String uid;
	String token;
	String realname;
	String mobile;
	String headurl;

	@Override
	public void parse(JSONObject obj) {
		if (null == obj) {
			return;
		}
		state = obj.optString("state");
		qq = obj.optBoolean("qq");
		weixin = obj.optBoolean("weixin");
		uid = obj.optString("uid");
		token = obj.optString("token");
		realname = obj.optString("realname");
		mobile = obj.optString("mobile");
		headurl = obj.optString("headurl");

	}

	public Boolean getQq() {
		return qq;
	}

	public void setQq(Boolean qq) {
		this.qq = qq;
	}

	public Boolean getWeixin() {
		return weixin;
	}

	public void setWeixin(Boolean weixin) {
		this.weixin = weixin;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getHeadurl() {
		return headurl;
	}

	public void setHeadurl(String headurl) {
		this.headurl = headurl;
	}

}
